<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 08:10:29
         compiled from "../includes/interface/templates\personneRechercher.tpl" */ ?>
<?php /*%%SmartyHeaderCode:136274fd988ef778090-30901652%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ac842f386c44092dedac296c9f9f0f42ff13a059' => 
    array (
      0 => '../includes/interface/templates\\personneRechercher.tpl',
      1 => 1339659803,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '136274fd988ef778090-30901652',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd988ef9fdc93_78178261',
  'variables' => 
  array (
    'listeRoles' => 0,
    'role' => 0,
    'groupe' => 0,
    'listePersonnes' => 0,
    'record' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd988ef9fdc93_78178261')) {function content_4fd988ef9fdc93_78178261($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\wamp\\www\\trunk\\includes\\interface\\smarty\\libs\\plugins\\function.cycle.php';
?><section id="content">
    <h2 class="article" ><?php echo $_smarty_tpl->getConfigVariable('PERSONNE_RECHERCHER');?>
</h2>
    
    <form name="formulaire" action="?action=rechercherPersonne" method="post" class="article buttons">
        
        <fieldset class="form-text break">
            <label><?php echo $_smarty_tpl->getConfigVariable('TITRE');?>
</label>
            <select name="titre">
                <option value=""></option>
                <option value="Monsieur"><?php echo $_smarty_tpl->getConfigVariable('MONSIEUR');?>
</option>
                <option value="Madame"><?php echo $_smarty_tpl->getConfigVariable('MADAME');?>
</option>
                <option value="Mademoiselle"><?php echo $_smarty_tpl->getConfigVariable('MADEMOISELLE');?>
</option>
            </select>
        </fieldset>
        
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('NOM');?>
</label>
            <input type="text" name="nom" value="" id="nom" class="validate[optional,custom[onlyLetter],length[0,20]] text-input"/> 
        </fieldset>

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('PRENOM');?>
</label>
            <input type="text" name="prenom" value="" id="prenom" class="validate[optional,custom[onlyLetter],length[0,12]] text-input"/>
        </fieldset>

        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('ROLE');?>
</label>
            <select name="role">
            	<option value="" selected="selected">---</option>
                <?php if (isset($_smarty_tpl->tpl_vars['listeRoles']->value)){?>
                <?php  $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['role']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listeRoles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value){
$_smarty_tpl->tpl_vars['role']->_loop = true;
?>
                 <option value="<?php echo $_smarty_tpl->tpl_vars['role']->value->getNom();?>
"><?php echo $_smarty_tpl->tpl_vars['role']->value->getNom();?>
</option>
                <?php } ?>
                <?php }?>
            </select>
        </fieldset>

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('LIEU');?>
</label>
            <input type="text" name="lieu" value="" id="lieu" class="validate[optional,custom[onlyLetter],length[0,20]] text-input"/>
        </fieldset>

        <fieldset class="form-actions">
            <input type="submit" class="submit" name="rechercherPersonne" value="<?php echo $_smarty_tpl->getConfigVariable('RECHERCHER');?>
" />
        </fieldset>

    </form>   
        
        
    <h2 class="article"><?php echo $_smarty_tpl->getConfigVariable('RESULTAT_RECHERCHE');?>
</h2>

 
            
    <table id="tableauRecherche" class="article">
        <thead>
            <tr>
                <th id="personneRechercheID" width="30px"><?php echo $_smarty_tpl->getConfigVariable('ID');?>
</th>
                <th id="personneRechercheNom" width="100px"><?php echo $_smarty_tpl->getConfigVariable('NOM');?>
</th>
                <th id="personneRecherchePrenom" width="100px"><?php echo $_smarty_tpl->getConfigVariable('PRENOM');?>
</th>
                <th id="personneRechercheEmail" width="100px"><?php echo $_smarty_tpl->getConfigVariable('EMAIL');?>
</th>
                <?php if ((isset($_smarty_tpl->tpl_vars['groupe']->value))&&($_smarty_tpl->tpl_vars['groupe']->value=='Super Administrateurs')){?>
                <th id="personneRechercheAction" width="50px"></th>
                <?php }?>
            </tr> 
        </thead>
        <tbody>
            <?php if (isset($_smarty_tpl->tpl_vars['listePersonnes']->value)){?>
                <?php  $_smarty_tpl->tpl_vars['record'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['record']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listePersonnes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['record']->key => $_smarty_tpl->tpl_vars['record']->value){
$_smarty_tpl->tpl_vars['record']->_loop = true;
?>
                    <tr class="<?php echo smarty_function_cycle(array('values'=>"ligne1,ligne2"),$_smarty_tpl);?>
">
                        <td><a href ="?action=afficherPersonne&id=<?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
"><?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
</a></td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getNom();?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getPrenom();?>
</td>
                        <td><a href ="mailto:<?php echo $_smarty_tpl->tpl_vars['record']->value->getEmail();?>
"><?php echo $_smarty_tpl->tpl_vars['record']->value->getEmail();?>
</a></td>
                        <?php if ((isset($_smarty_tpl->tpl_vars['groupe']->value))&&($_smarty_tpl->tpl_vars['groupe']->value=='Super Administrateurs')){?>
                        <td><a class="actions" href="?action=afficherSupprimerPersonne&id=<?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
"><?php echo $_smarty_tpl->getConfigVariable('SUPPRIMER');?>
</a></td>
                        <?php }?>
                    </tr>


                <?php } ?>    
            <?php }?>     
        </tbody>  
    </table>

</section>
<?php }} ?>